package com.graphqljava.demo.gql.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * com.graphqljava.demo.gql.entity
 *
 * @author Oscar.Chen
 * @date 6/16/2020 12:15 AM
 */
@Document(collection = "pm_md_person_info")//集合名
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonInfo {
    private static final long serialVersionUID = -8985545025018238753L;

    @Id
    @Field("_id")
    String _id;

    String id;
    String personId;
    String personName;
    @Field("project_id")
    String projectId;
    String projectName;
    String projectType;
    String achievementPosition;
    String achievementStartDate;
    String achievementEndDate;
}
